<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
<script>
    function Person(name){
        this.name = name;
    }
    
    function Korean(name, city){
        // instance 상속
        Person.call(this, name);    // Person에서 Person.this = Korean.this
        this.city = city;
    }
    
    var man = new Korean("홍길동", "Seoul");
    
    console.log(man.name +", "+man.city);
    
</script>
</head>
<body>

</body>
</html>